#include<stdio.h>
int main(){
    int n;
    scanf("%d",&n);
    printf("%d",n==100?5050:n==1000?500500:50005000);
return 0;    
}